package domein;

import java.util.logging.Logger;

/**
 * 
 * @author rensbonnez
 * The settings class will hold the settings like the shared directory
 * and the maximum file size. So we can ask it everywhere in the program.
 * 
 */

public class Settings 
{
	public static Logger logger = Logger.getLogger("MyLog");
	private static String sharedDir;
	private static String downloadDir;
	private static int maxFileSize = 1024;
	
	/**
	 * 
	 * Getters & Setters
	 * 
	 */
	
	public static String getSharedDir() {
		return sharedDir;
	}
	
	public static void setSharedDir(String sharedDir) {
		Settings.sharedDir = sharedDir;
		logger.info("Shared directory: " + sharedDir);
	}
	
	public static String getDownloadDir() {
		return downloadDir;
	}
	
	public static void setDownloadDir(String downloadDir) {
		Settings.downloadDir = downloadDir;
		logger.info("Download directory: " + downloadDir);
	}
	
	public static int getMaxFileSize() {
		return maxFileSize;
	}
	
	public static void setMaxFileSize(int maxFileSize) {
		Settings.maxFileSize = maxFileSize;
	}
}
